/*
 * Copyright 2006-2007 Queplix Corp.
 *
 * Licensed under the Modified Queplix BSD License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.queplix.com/BSDLICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.jlect.swebing.ui.client;

/**
 * Key event.
 *
 * @author Sergey Kozmin
 * @since Nov 27, 2007
 */
public interface KeyEvent extends GEvent {
    public static final int KEY_PRESSED     = 1;
    public static final int KEY_TYPED       = 2;
    public static final int KEY_RELEASED    = 3;

    /**
     * @return type of the key event. See constants defined in this interface.
     */
    public int getKeyEventType();

    /**
     * @return key code of the key was pressed
     */
    public int getKeyCode();
}
